package com.xhwy.param;

import com.xhwy.vo.ShoppingCartVo;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

//订单接收参数
@Data
public class OrderParam implements Serializable {

    private static final Long serialVersionUID = 1L;

    @NotNull
    private Integer userId;

    @NotNull
    private Integer addressId;//地址编号

    @NotEmpty
    private List<ShoppingCartVo> ShoppingCartVos;

}
